package com.freesun.monitor.fs;

import com.freesun.monitor.db.OperateMariaDb;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;


/**
 * 测试上传
 *
 * @author yangfei
 * @created 2013-12-11
 * @desc 对fastdfs服务器集群进行性能测试验证，首次测试为添加缓存服务，二次验证增加缓存服务
 */
public class OfastDfs {

    private Logger log = LoggerFactory.getLogger(this.getClass());

    private ThreadGroup uploadGroup;
    private ThreadGroup downGroup;

    /**
     * @desc  每次创建100个线程上传文件
     * @param clientPath
     * @param localFilePath
     * @param fastDfs
     * @return
     */
    public int multUpload(String clientPath, String localFilePath, FastDfs fastDfs) {

        //创建上传程组
        uploadGroup = new ThreadGroup("upload group");


        MultUploadFastDfs multUploadFastDfs1 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs2 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs3 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs4 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs5 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs6 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs7 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs8 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs9 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs10 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs11 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs12 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs13 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs14 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs15 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs16 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs17 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs18 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs19 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs20 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs21 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs22 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs23 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs24 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs25 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs26 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs27 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs28 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs29 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs30 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs31 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs32 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs33 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs34 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs35 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs36 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs37 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs38 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs39 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs40 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs41 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs42 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs43 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs44 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs45 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs46 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs47 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs48 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs49 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs50 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs51 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs52 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs53 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs54 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs55 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs56 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs57 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs58 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs59 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs60 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs61 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs62 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs63 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs64 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs65 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs66 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs67 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs68 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs69 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs70 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs71 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs72 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs73 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs74 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs75 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs76 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs77 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs78 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs79 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs80 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs81 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs82 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs83 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs84 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs85 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs86 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs87 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs88 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs89 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs90 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs91 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs92 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs93 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs94 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs95 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs96 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs97 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs98 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs99 = new MultUploadFastDfs(clientPath, localFilePath, fastDfs);
        MultUploadFastDfs multUploadFastDfs100= new MultUploadFastDfs(clientPath, localFilePath, fastDfs);

        //将线程加入到查询线程组
        new Thread(uploadGroup, multUploadFastDfs1).run();
        new Thread(uploadGroup, multUploadFastDfs2).run();
        new Thread(uploadGroup, multUploadFastDfs3).run();
        new Thread(uploadGroup, multUploadFastDfs4).run();
        new Thread(uploadGroup, multUploadFastDfs5).run();
        new Thread(uploadGroup, multUploadFastDfs6).run();
        new Thread(uploadGroup, multUploadFastDfs7).run();
        new Thread(uploadGroup, multUploadFastDfs8).run();
        new Thread(uploadGroup, multUploadFastDfs9).run();
        new Thread(uploadGroup, multUploadFastDfs10 ).run();
        new Thread(uploadGroup, multUploadFastDfs11 ).run();
        new Thread(uploadGroup, multUploadFastDfs12 ).run();
        new Thread(uploadGroup, multUploadFastDfs13 ).run();
        new Thread(uploadGroup, multUploadFastDfs14 ).run();
        new Thread(uploadGroup, multUploadFastDfs15 ).run();
        new Thread(uploadGroup, multUploadFastDfs16 ).run();
        new Thread(uploadGroup, multUploadFastDfs17 ).run();
        new Thread(uploadGroup, multUploadFastDfs18 ).run();
        new Thread(uploadGroup, multUploadFastDfs19 ).run();
        new Thread(uploadGroup, multUploadFastDfs20 ).run();
        new Thread(uploadGroup, multUploadFastDfs21 ).run();
        new Thread(uploadGroup, multUploadFastDfs22 ).run();
        new Thread(uploadGroup, multUploadFastDfs23 ).run();
        new Thread(uploadGroup, multUploadFastDfs24 ).run();
        new Thread(uploadGroup, multUploadFastDfs25 ).run();
        new Thread(uploadGroup, multUploadFastDfs26 ).run();
        new Thread(uploadGroup, multUploadFastDfs27 ).run();
        new Thread(uploadGroup, multUploadFastDfs28 ).run();
        new Thread(uploadGroup, multUploadFastDfs29 ).run();
        new Thread(uploadGroup, multUploadFastDfs30 ).run();
        new Thread(uploadGroup, multUploadFastDfs31 ).run();
        new Thread(uploadGroup, multUploadFastDfs32 ).run();
        new Thread(uploadGroup, multUploadFastDfs33 ).run();
        new Thread(uploadGroup, multUploadFastDfs34 ).run();
        new Thread(uploadGroup, multUploadFastDfs35 ).run();
        new Thread(uploadGroup, multUploadFastDfs36 ).run();
        new Thread(uploadGroup, multUploadFastDfs37 ).run();
        new Thread(uploadGroup, multUploadFastDfs38 ).run();
        new Thread(uploadGroup, multUploadFastDfs39 ).run();
        new Thread(uploadGroup, multUploadFastDfs40 ).run();
        new Thread(uploadGroup, multUploadFastDfs41 ).run();
        new Thread(uploadGroup, multUploadFastDfs42 ).run();
        new Thread(uploadGroup, multUploadFastDfs43 ).run();
        new Thread(uploadGroup, multUploadFastDfs44 ).run();
        new Thread(uploadGroup, multUploadFastDfs45 ).run();
        new Thread(uploadGroup, multUploadFastDfs46 ).run();
        new Thread(uploadGroup, multUploadFastDfs47 ).run();
        new Thread(uploadGroup, multUploadFastDfs48 ).run();
        new Thread(uploadGroup, multUploadFastDfs49 ).run();
        new Thread(uploadGroup, multUploadFastDfs50 ).run();
        new Thread(uploadGroup, multUploadFastDfs51 ).run();
        new Thread(uploadGroup, multUploadFastDfs52 ).run();
        new Thread(uploadGroup, multUploadFastDfs53 ).run();
        new Thread(uploadGroup, multUploadFastDfs54 ).run();
        new Thread(uploadGroup, multUploadFastDfs55 ).run();
        new Thread(uploadGroup, multUploadFastDfs56 ).run();
        new Thread(uploadGroup, multUploadFastDfs57 ).run();
        new Thread(uploadGroup, multUploadFastDfs58 ).run();
        new Thread(uploadGroup, multUploadFastDfs59 ).run();
        new Thread(uploadGroup, multUploadFastDfs60 ).run();
        new Thread(uploadGroup, multUploadFastDfs61 ).run();
        new Thread(uploadGroup, multUploadFastDfs62 ).run();
        new Thread(uploadGroup, multUploadFastDfs63 ).run();
        new Thread(uploadGroup, multUploadFastDfs64 ).run();
        new Thread(uploadGroup, multUploadFastDfs65 ).run();
        new Thread(uploadGroup, multUploadFastDfs66 ).run();
        new Thread(uploadGroup, multUploadFastDfs67 ).run();
        new Thread(uploadGroup, multUploadFastDfs68 ).run();
        new Thread(uploadGroup, multUploadFastDfs69 ).run();
        new Thread(uploadGroup, multUploadFastDfs70 ).run();
        new Thread(uploadGroup, multUploadFastDfs71 ).run();
        new Thread(uploadGroup, multUploadFastDfs72 ).run();
        new Thread(uploadGroup, multUploadFastDfs73 ).run();
        new Thread(uploadGroup, multUploadFastDfs74 ).run();
        new Thread(uploadGroup, multUploadFastDfs75 ).run();
        new Thread(uploadGroup, multUploadFastDfs76 ).run();
        new Thread(uploadGroup, multUploadFastDfs77 ).run();
        new Thread(uploadGroup, multUploadFastDfs78 ).run();
        new Thread(uploadGroup, multUploadFastDfs79 ).run();
        new Thread(uploadGroup, multUploadFastDfs80 ).run();
        new Thread(uploadGroup, multUploadFastDfs81 ).run();
        new Thread(uploadGroup, multUploadFastDfs82 ).run();
        new Thread(uploadGroup, multUploadFastDfs83 ).run();
        new Thread(uploadGroup, multUploadFastDfs84 ).run();
        new Thread(uploadGroup, multUploadFastDfs85 ).run();
        new Thread(uploadGroup, multUploadFastDfs86 ).run();
        new Thread(uploadGroup, multUploadFastDfs87 ).run();
        new Thread(uploadGroup, multUploadFastDfs88 ).run();
        new Thread(uploadGroup, multUploadFastDfs89 ).run();
        new Thread(uploadGroup, multUploadFastDfs90 ).run();
        new Thread(uploadGroup, multUploadFastDfs91 ).run();
        new Thread(uploadGroup, multUploadFastDfs92 ).run();
        new Thread(uploadGroup, multUploadFastDfs93 ).run();
        new Thread(uploadGroup, multUploadFastDfs94 ).run();
        new Thread(uploadGroup, multUploadFastDfs95 ).run();
        new Thread(uploadGroup, multUploadFastDfs96 ).run();
        new Thread(uploadGroup, multUploadFastDfs97 ).run();
        new Thread(uploadGroup, multUploadFastDfs98 ).run();
        new Thread(uploadGroup, multUploadFastDfs99 ).run();
        new Thread(uploadGroup, multUploadFastDfs100).run();



        return uploadGroup.activeCount();
    }


    public int multDown(String clientPath,String group_name,String remoteFileName,String localeFileName,String type, FastDfs fastDfs){

        //创建下载线程组
        downGroup = new ThreadGroup("down group");

        MultDownFastDfs multDownFastDfs1 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs2 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs3 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs4 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs5 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs6 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs7 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs8 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs9 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs10 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs11 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs12 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs13 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs14 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs15 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs16 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs17 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs18 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs19 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs20 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs21 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs22 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs23 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs24 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs25 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs26 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs27 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs28 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs29 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs30 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs31 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs32 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs33 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs34 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs35 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs36 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs37 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs38 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs39 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs40 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs41 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs42 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs43 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs44 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs45 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs46 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs47 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs48 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs49 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs50 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs51 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs52 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs53 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs54 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs55 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs56 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs57 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs58 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs59 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs60 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs61 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs62 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs63 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs64 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs65 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs66 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs67 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs68 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs69 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs70 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs71 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs72 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs73 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs74 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs75 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs76 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs77 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs78 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs79 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs80 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs81 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs82 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs83 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs84 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs85 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs86 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs87 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs88 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs89 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs90 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs91 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs92 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs93 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs94 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs95 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs96 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs97 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs98 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs99 = new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);
        MultDownFastDfs multDownFastDfs100= new MultDownFastDfs(clientPath,group_name,remoteFileName,localeFileName,type, fastDfs);

        //将线程加入到查询线程组
        new Thread(uploadGroup, multDownFastDfs1).run();
        new Thread(uploadGroup, multDownFastDfs2).run();
        new Thread(uploadGroup, multDownFastDfs3).run();
        new Thread(uploadGroup, multDownFastDfs4).run();
        new Thread(uploadGroup, multDownFastDfs5).run();
        new Thread(uploadGroup, multDownFastDfs6).run();
        new Thread(uploadGroup, multDownFastDfs7).run();
        new Thread(uploadGroup, multDownFastDfs8).run();
        new Thread(uploadGroup, multDownFastDfs9).run();
        new Thread(uploadGroup, multDownFastDfs10).run();
        new Thread(uploadGroup, multDownFastDfs11).run();
        new Thread(uploadGroup, multDownFastDfs12).run();
        new Thread(uploadGroup, multDownFastDfs13).run();
        new Thread(uploadGroup, multDownFastDfs14).run();
        new Thread(uploadGroup, multDownFastDfs15).run();
        new Thread(uploadGroup, multDownFastDfs16).run();
        new Thread(uploadGroup, multDownFastDfs17).run();
        new Thread(uploadGroup, multDownFastDfs18).run();
        new Thread(uploadGroup, multDownFastDfs19).run();
        new Thread(uploadGroup, multDownFastDfs20).run();
        new Thread(uploadGroup, multDownFastDfs21).run();
        new Thread(uploadGroup, multDownFastDfs22).run();
        new Thread(uploadGroup, multDownFastDfs23).run();
        new Thread(uploadGroup, multDownFastDfs24).run();
        new Thread(uploadGroup, multDownFastDfs25).run();
        new Thread(uploadGroup, multDownFastDfs26).run();
        new Thread(uploadGroup, multDownFastDfs27).run();
        new Thread(uploadGroup, multDownFastDfs28).run();
        new Thread(uploadGroup, multDownFastDfs29).run();
        new Thread(uploadGroup, multDownFastDfs30).run();
        new Thread(uploadGroup, multDownFastDfs31).run();
        new Thread(uploadGroup, multDownFastDfs32).run();
        new Thread(uploadGroup, multDownFastDfs33).run();
        new Thread(uploadGroup, multDownFastDfs34).run();
        new Thread(uploadGroup, multDownFastDfs35).run();
        new Thread(uploadGroup, multDownFastDfs36).run();
        new Thread(uploadGroup, multDownFastDfs37).run();
        new Thread(uploadGroup, multDownFastDfs38).run();
        new Thread(uploadGroup, multDownFastDfs39).run();
        new Thread(uploadGroup, multDownFastDfs40).run();
        new Thread(uploadGroup, multDownFastDfs41).run();
        new Thread(uploadGroup, multDownFastDfs42).run();
        new Thread(uploadGroup, multDownFastDfs43).run();
        new Thread(uploadGroup, multDownFastDfs44).run();
        new Thread(uploadGroup, multDownFastDfs45).run();
        new Thread(uploadGroup, multDownFastDfs46).run();
        new Thread(uploadGroup, multDownFastDfs47).run();
        new Thread(uploadGroup, multDownFastDfs48).run();
        new Thread(uploadGroup, multDownFastDfs49).run();
        new Thread(uploadGroup, multDownFastDfs50).run();
        new Thread(uploadGroup, multDownFastDfs51).run();
        new Thread(uploadGroup, multDownFastDfs52).run();
        new Thread(uploadGroup, multDownFastDfs53).run();
        new Thread(uploadGroup, multDownFastDfs54).run();
        new Thread(uploadGroup, multDownFastDfs55).run();
        new Thread(uploadGroup, multDownFastDfs56).run();
        new Thread(uploadGroup, multDownFastDfs57).run();
        new Thread(uploadGroup, multDownFastDfs58).run();
        new Thread(uploadGroup, multDownFastDfs59).run();
        new Thread(uploadGroup, multDownFastDfs60).run();
        new Thread(uploadGroup, multDownFastDfs61).run();
        new Thread(uploadGroup, multDownFastDfs62).run();
        new Thread(uploadGroup, multDownFastDfs63).run();
        new Thread(uploadGroup, multDownFastDfs64).run();
        new Thread(uploadGroup, multDownFastDfs65).run();
        new Thread(uploadGroup, multDownFastDfs66).run();
        new Thread(uploadGroup, multDownFastDfs67).run();
        new Thread(uploadGroup, multDownFastDfs68).run();
        new Thread(uploadGroup, multDownFastDfs69).run();
        new Thread(uploadGroup, multDownFastDfs70).run();
        new Thread(uploadGroup, multDownFastDfs71).run();
        new Thread(uploadGroup, multDownFastDfs72).run();
        new Thread(uploadGroup, multDownFastDfs73).run();
        new Thread(uploadGroup, multDownFastDfs74).run();
        new Thread(uploadGroup, multDownFastDfs75).run();
        new Thread(uploadGroup, multDownFastDfs76).run();
        new Thread(uploadGroup, multDownFastDfs77).run();
        new Thread(uploadGroup, multDownFastDfs78).run();
        new Thread(uploadGroup, multDownFastDfs79).run();
        new Thread(uploadGroup, multDownFastDfs80).run();
        new Thread(uploadGroup, multDownFastDfs81).run();
        new Thread(uploadGroup, multDownFastDfs82).run();
        new Thread(uploadGroup, multDownFastDfs83).run();
        new Thread(uploadGroup, multDownFastDfs84).run();
        new Thread(uploadGroup, multDownFastDfs85).run();
        new Thread(uploadGroup, multDownFastDfs86).run();
        new Thread(uploadGroup, multDownFastDfs87).run();
        new Thread(uploadGroup, multDownFastDfs88).run();
        new Thread(uploadGroup, multDownFastDfs89).run();
        new Thread(uploadGroup, multDownFastDfs90).run();
        new Thread(uploadGroup, multDownFastDfs91).run();
        new Thread(uploadGroup, multDownFastDfs92).run();
        new Thread(uploadGroup, multDownFastDfs93).run();
        new Thread(uploadGroup, multDownFastDfs94).run();
        new Thread(uploadGroup, multDownFastDfs95).run();
        new Thread(uploadGroup, multDownFastDfs96).run();
        new Thread(uploadGroup, multDownFastDfs97).run();
        new Thread(uploadGroup, multDownFastDfs98).run();
        new Thread(uploadGroup, multDownFastDfs99).run();
        new Thread(uploadGroup, multDownFastDfs100).run();

        return downGroup.activeCount();
    }

}